'''
Created on 2018年4月7日

@author: sky
'''
from test.test_turtle import turtle
from time import time, ctime, perf_counter


# turtle.goto(100,100)
# turtle.goto(100,-100)
# turtle.goto(-100,-100)
# turtle.goto(-100,200)
# turtle.goto(0,0)
# turtle.left(45)
# turtle.fd(150)
# turtle.right(135)
# turtle.fd(300)
# turtle.left(135)
# turtle.fd(150)往前行驶150像素
#turtle绘图库
# turtle.setup(650,350,200,200) 画板大小
# turtle.penup() 起笔
# turtle.fd(-250) 往前行进-250°
# turtle.pendown() 落笔
# turtle.pensize(38) 大小像素，即粗细
# turtle.pencolor("red") 颜色
# turtle.seth(-40) 行进角度
# for i in range(4): 循环次数
#         turtle.circle(40,80) 
#         turtle.circle(-40,80)
# turtle.circle(40,40)
# turtle.fd(60)
# turtle.circle(16,120)
# turtle.fd(40*2/5)
# turtle.done
# print(float(1))
# print(int("89"))
# print(pow(1.01,365))
# print(pow(0.99,365))
# def dayUP(df):
#     dayup=1
#     for i in range(365):
#         if i % 7 in[6,0]:
#            dayup=dayup*(1-df) 
#         else:  
#            dayup=dayup*(1+df) 
#         return dayup 
#     dayfactor = 0.01
#     while dayUP(dayfactor) < 37.78:
#         dayfactor += 0.001
#         print(dayfactor)
#12星座对应字符
# for i in range(12):
#     print(chr(9800+i),end="")

def foo():
    turtle.pensize(3)
    turtle.penup()
    turtle.goto(-200,-50)
    turtle.pendown()
    turtle.begin_fill()
    turtle.color("red")
    turtle.circle(40, steps=3)
    turtle.end_fill()


    turtle.penup()
    turtle.goto(-100,-50)
    turtle.pendown()
    turtle.begin_fill()
    turtle.color("blue")
    turtle.circle(40, steps=4)
    turtle.end_fill()

    turtle.penup()
    turtle.goto(0,-50)
    turtle.pendown()
    turtle.begin_fill()
    turtle.color("green")
    turtle.circle(40, steps=5)
    turtle.end_fill()

    turtle.penup()
    turtle.goto(100,-50)
    turtle.pendown()
    turtle.begin_fill()
    turtle.color("yellow")
    turtle.circle(40, steps=6)
    turtle.end_fill()

    turtle.penup()
    turtle.goto(200,-50)
    turtle.pendown()
    turtle.begin_fill()
    turtle.color("purple")
    turtle.circle(40)
    turtle.end_fill()

    turtle.color("green")
    turtle.penup()
    turtle.goto(-100,50)
    turtle.pendown()
    turtle.write(("Cool Colorful shapes"),
        font = ("Times", 18, "bold"))
    turtle.hideturtle()

    turtle.done

if __name__ == '__main__':
    foo()